Assignemnt: #112 and Odometer Loops

Code
/// Name: Yordan Rashkov
/// Period: 7
/// Program Name: Odometer Loops
/// File Name: odometer.java
/// Date Finished: 5/2/2016

public class odometer
{
    public static void main( String[] args ) throws Exception
    {
        for ( int thous=0; thous<10; thous++ )
        {
            for ( int hund=0; hund<10; hund++ )
            {
                for ( int tens=0; tens<10; tens++ )
                {
                    for ( int ones=0; ones<10; ones++ )
                    {
                        System.out.print( " " + thous + "" + hund + "" + tens + "" + ones + "\r" );
                        Thread.sleep(10);
                    }
                }
            }
        }

        System.out.println();
    }
}